﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="addedrecord.aspx.vb" Inherits="bookmeetprototype.addedrecord" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
    .style1
    {
        width: 195px;
        height: 188px;
    }
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <!-- beginning of repeater to show book details -->
    <asp:Repeater ID="detailView" runat="server">
    <ItemTemplate>
    <div id="wrapper">
    <div id="first"><asp:Image ID="Image1" cssClass="floatimg" NullImageUrl="~/img/no_image.jpg" runat="server" Width="150px" ImageUrl='<%# Eval("imgurl")%>'/></div>
    <div id="second">
    <strong><%#Container.DataItem("Title")%></strong>&nbsp;<small>by&nbsp;</small><strong><%#Container.DataItem("Author")%></strong><h5>Date of Publication:</h5><small><%#Container.DataItem("PublicationDate")%></small>
    <h5>No. of Pages:</h5><small><%#Container.DataItem("Pages")%></small>
    <h5>Publisher:</h5><small><%#Container.DataItem("Publisher")%></small>
    <h5>Description:</h5>
    <small><%#Container.DataItem("Blurb")%></small>
    </div>
   </div>
    </ItemTemplate>
    </asp:Repeater>
    <!-- end of repeater -->
    <hr />
    <asp:SqlDataSource ID="BookJustAdded" runat="server" 
        ConnectionString="<%$ ConnectionStrings:BookMeetConnString %>" 
        ProviderName="<%$ ConnectionStrings:BookMeetConnString.ProviderName %>" 
        
        SelectCommand="SELECT TOP 1 ID, Title, Author, PublicationDate, Pages, Publisher, AverageRating, imgurl, thumburl FROM booklist ORDER BY ID DESC">
    </asp:SqlDataSource><br /><table style="background-color:transparent" width="400" cellpadding="1" cellspacing="1">
	<tr>
		<td><asp:HyperLink   
            ID="returntolist"   
            runat="server"  
            Text="Return to list"  
            NavigateUrl="~/list.aspx"  
            > 
        </asp:HyperLink></td>
		<td><asp:HyperLink   
            ID="addanotherbook"   
            runat="server"  
            Text="Add Another Book!"  
            NavigateUrl="~/addbook.aspx"  
            >  
        </asp:HyperLink></td>
	</tr>
</table>

<br />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="SideBarContent" runat="server">
    <p>
    <img alt="" class="style1" src="img/thumbs_up_rip.png" /></p>
<small>Thank you for adding a book to our library. Please <a href="~/Account/Register.aspx" runat="server">register</a> if you haven't already done so, so that you can add books to your bookshelf and start your bookmeet experience!</small>
</asp:Content>
